using UnityEngine;
using System.Collections;

public class BallJump : MonoBehaviour {
	public float jump;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if(Input.GetKeyDown(KeyCode.Space)){
			rigidbody.AddForce(0,jump,0);	
			Debug.Log("High Jump = " + jump);
		}
		if(Input.GetKeyDown(KeyCode.LeftArrow)){
			rigidbody.AddForce(-50,0,0);	
		}
		if(Input.GetKeyDown(KeyCode.RightArrow)){
			rigidbody.AddForce(50,0,0);	
		}
	}
}
